package cn.iocoder.yudao.module.hs.controller.admin.entryorderdetail.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 入库单明细新增/修改 Request VO")
@Data
public class EntryOrderDetailSaveReqVO {

    @Schema(description = "入库单明细主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "27628")
    private Long id;

    @Schema(description = "入库单id", requiredMode = Schema.RequiredMode.REQUIRED, example = "9237")
    @NotNull(message = "入库单id不能为空")
    private Long orderId;

    @Schema(description = "物料名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "物料名称不能为空")
    private String materialName;

    @Schema(description = "产品码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "产品码不能为空")
    private String materialCode;

    @Schema(description = "物料代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "物料代码不能为空")
    private String modeCode;

    @Schema(description = "物料箱编码")
    private String boxCode;

    @Schema(description = "托盘编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "托盘编码不能为空")
    private String trayCode;

    @Schema(description = "所在仓库", requiredMode = Schema.RequiredMode.REQUIRED, example = "16085")
    @NotNull(message = "所在仓库不能为空")
    private Long warehouseId;

    @Schema(description = "入库时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "入库时间不能为空")
    private LocalDateTime entryTime;

}